<!DOCTYPE html>
<html>
<head>
    <title>我的申请</title>
</head>
<body class="layui-layout-body">
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">外带印章</h4>
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li lay-id="APPLY">申请记录</li>
                    <li lay-id="APPROVE">授权使用</li>
                    <li lay-id="TAKE" class="layui-this">外带印章</li>
                </ul>
                <div class="layui-tab-content" style="height: 100px;">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form no_bordertop" >
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">设备编号</label>
                                    <div class="layui-input-inline" style="width:150px">
                                        <input type="text" class="layui-input" id="test6" placeholder="">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">印章名称</label>
                                     <div class="layui-input-inline" style="width:150px">
                                        <input type="text" class="layui-input" id="test6" placeholder="">
                                    </div>
                                </div>
                                <div class="layui-inline width80">
                                    <div class="layui-input-inline ">
                                        <button class="layui-btn" lay-submit="" lay-filter="demo1" >搜索</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <table class="layui-table mytable" lay-even="" lay-skin="nob">
                            <thead>
	                            <tr>
	                                <th>印章名称</th>
	                                <th>申请事由</th>
	                                <th>外带期限</th>
	                                <th>状态</th>
	                                <th>操作</th>
	                            </tr>
                            </thead>
                            <tbody>
                            	   <#list pm.datas as item>
	                            <tr>
	                                <td>${item.seal.sealName}</td>
	                                <td>${item.cause}</td>
	                                <td>${item.startDate?string('yyyy-MM-dd')} - ${item.endDate?string('yyyy-MM-dd')}</td>
	                                <td>
	                                		<@linkage type="TAKE_STATUS" key=item.takeStatus>
								        		<span class="${linkage.style}">${linkage.name}</span>
								        	</@linkage>    
	                                		
	                                </td>
	                                <td class="aline_a">
	                                		<a href="javascript:openwinx('查看','/apply/take/info.htm?devicesTakeId=${item.devicesTakeId}',800,600);" class="read_list">查看</a>
	                                </td>
	                            </tr>
	                            </#list>
                            </tbody>
                        </table>
                        <@p.page pm=pm></@p.page>
                    </div>
                    
                </div>
            </div>
        </div>
     </div>
<script>
layui.use(['element','laydate'], function(){
	  var $ = layui.jquery,element = layui.element,laydate = layui.laydate; 
	  element.on('tab(docDemoTabBrief)', function(elem){
	  		var id = $(this).attr('lay-id');
	  		if(id == 'APPLY'){
	  		 	location.href='/apply/list.htm';
	  		}
	  		
	  		if(id == 'APPROVE'){
	  		 	location.href='/apply/approve/list.htm';
	  		}
	  		
	  		
	  });
	  
	  
  
});
</script>
</body>
</html>